<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

  
App::uses('AppModel', 'Model');

class Insteducativa extends AppModel {
     
	 public $name = 'Insteducativa';
	 
	  	public $belongsTo = array(
		'Gestion' => array(
			'className' => 'Gestion',
			'foreignKey' => 'gestion_id'
			
		));
		
			public $hasMany = array(
		'Evento' => array(
			'className' => 'Evento',
			'foreignKey' => 'insteducativa_id',
			
		),
		
		'Incidencia' => array(
			'className' => 'Incidencia',
			'foreignKey' => 'insteducativa_id',
			
		)
	);
}